package com.zhiche.lisa.lspm.service.fleet;


import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.lspm.dao.model.driver.Driver;
import com.zhiche.lisa.lspm.dao.model.driver.bo.DriverCheckinLineBO;
import com.zhiche.lisa.lspm.dao.model.fleet.FleetAdmin;
import com.zhiche.lisa.lspm.dto.DriverCheckinDTO;
import com.zhiche.lisa.lspm.vo.driver.DriverCheckinLineVO;
import com.zhiche.lisa.lspm.vo.fleet.FleetAdminVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

/**
 * <p>
 * 车队管理员表 服务类
 * </p>
 *
 * @author hongbo
 * @since 2018-10-29
 */
public interface FleetAdminService extends IService<FleetAdmin> {
    /**
     * 添加车队管理员
     */
    void addFleetAdmin(FleetAdmin fleetAdmin,String authorization);

    /**
     * 根据手机号查询账号信息
     */
    Driver queryAccountByPhone(String phone);


    /**
     * 获取车队管理员列表
     * @param page
     * @return
     */
    Page<FleetAdminVO> queryFleetAdminList(Page<FleetAdminVO> page, String authorization);

    /**
     * 车队车辆报班
     * @return
     */
    void  fleetCheckIn(DriverCheckinDTO dto, String token);

    /**
     * 车队报班记录列表
     */
    Page<DriverCheckinLineVO> fleetCheckinLine(Page<DriverCheckinLineBO> page);

    String selectFleetAdminByName(String personal);
}
